const http = require('http');
const server = http.createServer((req, res) => {
	console.log(req);
	const {
		url,
		method
	} = req;
	console.log(url);
	console.log(method)
	res.end(JSON.stringify({
		data: 'Hello World!'
	}));
});

server.listen(8080);
